/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "ammus")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Ammus.findAll", query = "SELECT a FROM Ammus a"),
    @NamedQuery(name = "Ammus.findByAmuide", query = "SELECT a FROM Ammus a WHERE a.amuide = :amuide"),
    @NamedQuery(name = "Ammus.findByAmuuaf", query = "SELECT a FROM Ammus a WHERE a.amuuaf = :amuuaf"),
    @NamedQuery(name = "Ammus.findByAmuuej", query = "SELECT a FROM Ammus a WHERE a.amuuej = :amuuej"),
    @NamedQuery(name = "Ammus.findByAmufec", query = "SELECT a FROM Ammus a WHERE a.amufec = :amufec")})
public class Ammus implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "amuide")
    private Integer amuide;
    @Column(name = "amuuaf")
    private String amuuaf;
    @Column(name = "amuuej")
    private String amuuej;
    @Column(name = "amufec")
    @Temporal(TemporalType.TIMESTAMP)
    private Date amufec;
    @JoinColumn(name = "aauide", referencedColumnName = "aauide")
    @ManyToOne
    private Amaus aauide;

    public Ammus() {
    }

    public Ammus(Integer amuide) {
        this.amuide = amuide;
    }

    public Integer getAmuide() {
        return amuide;
    }

    public void setAmuide(Integer amuide) {
        this.amuide = amuide;
    }

    public String getAmuuaf() {
        return amuuaf;
    }

    public void setAmuuaf(String amuuaf) {
        this.amuuaf = amuuaf;
    }

    public String getAmuuej() {
        return amuuej;
    }

    public void setAmuuej(String amuuej) {
        this.amuuej = amuuej;
    }

    public Date getAmufec() {
        return amufec;
    }

    public void setAmufec(Date amufec) {
        this.amufec = amufec;
    }

    public Amaus getAauide() {
        return aauide;
    }

    public void setAauide(Amaus aauide) {
        this.aauide = aauide;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (amuide != null ? amuide.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Ammus)) {
            return false;
        }
        Ammus other = (Ammus) object;
        if ((this.amuide == null && other.amuide != null) || (this.amuide != null && !this.amuide.equals(other.amuide))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.framework.adminMenu.modelo.Ammus[ amuide=" + amuide + " ]";
    }
    
}
